cmake_minimum_required(VERSION 3.16)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

project(injector)

SET(CSB_REVISION FALSE CACHE BOOL "Marks the presence of SkyHawk revision string.")
set(CSB_REVISION_STR "" CACHE STRING "The SkyHawk revision string.")

mark_as_advanced(CSB_REVISION CSB_REVISION_STR)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

#生成文件输出路径
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(FFMPEG_INCLUDE "" CACHE PATH "Path to the ffmpeg library")

add_definitions(-DUNICODE -DEXPORT_API)

option(WITH_TESTS "Build Tests" ON)
option(WITH_DEBUG_CMAKE "Enabled CMake project debugging functionality (e.g. source file disk checking)" OFF)
option(BUILD_WITH_PCH "Build with precompiled headers" ON)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Set up Qt stauff, auto moc/uic/rcc
file(GLOB_RECURSE pipe_header_files  ${CMAKE_CURRENT_SOURCE_DIR}/*.h )
source_group("Header Files" FILES ${pipe_header_files}) 

include_directories(.)
aux_source_directory(. DIR_SRCS)
add_library(injector SHARED ${DIR_SRCS} ${pipe_header_files})
target_include_directories(injector PUBLIC ${FFMPEG_INCLUDE})


